package com.fastloan.mgt.customer.model;

import com.fastloan.mgt.customer.anno.EnumObj;
import com.fastloan.mgt.customer.anno.TagAnno;
import com.fastloan.mgt.customer.enums.CustomerEnums;
import com.kawins.base.baseabs.BaseModel;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author gelon createTime 2017/11/06 客户商业信息
 */
@javax.persistence.Table(name = "ZY_CUSTOMER_BUSINESS")
public class ZyCustomerBusiness extends BaseModel<String> {


    /**
     *
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TagAnno(name = "")
    private String id;
    /**
     * 行业id
     */
    @TagAnno(name = "行业id")
    private Integer industry;

    @Transient
    @EnumObj(mapping = "industry")
    private CustomerEnums.Industry[] industryEnums = CustomerEnums.Industry.values();

    /**
     * 经营范围
     */
    @TagAnno(name = "经营范围")
    private String businessScope;
    /**
     * 经营地址
     */
    @TagAnno(name = "经营地址")
    private String businessAddress;
    /**
     * 开业时间
     */
    @TagAnno(name = "开业时间")
    private Date startTime;
    /**
     * 经营现状
     */
    @TagAnno(name = "经营现状")
    private String statusQuo;
    /**
     * 组织形式
     */
    @TagAnno(name = "组织形式")
    private String organizationalForm;
    /**
     * 雇员人数
     */
    @TagAnno(name = "雇员人数")
    private Integer employeeNum;
    /**
     * 营业电话
     */
    @TagAnno(name = "营业电话")
    private String bussnessPhone;
    /**
     * 年销售额
     */
    @TagAnno(name = "年销售额")
    private BigDecimal yearSale;
    /**
     * 毛利瑞
     */
    @TagAnno(name = "毛利瑞")
    private BigDecimal grossProfit;
    /**
     * 净利润
     */
    @TagAnno(name = "净利润")
    private BigDecimal netProfit;
    /**
     * 总资产
     */
    @TagAnno(name = "总资产")
    private BigDecimal totalAssets;
    /**
     * 存量
     */
    @TagAnno(name = "存量")
    private BigDecimal stock;
    /**
     * 应收账款
     */
    @TagAnno(name = "应收账款")
    private BigDecimal accountReceivable;
    /**
     * 负债
     */
    @TagAnno(name = "负债")
    private BigDecimal liabilities;
    /**
     * 备注
     */
    @TagAnno(name = "备注")
    private String other;
    /**
     * 客户id
     */
    @TagAnno(name = "客户id")
    private String customerId;


    public String getId() {
        return id;
    }

    public ZyCustomerBusiness setId(String id) {
        this.id = id;
        return this;
    }

    public Integer getIndustry() {
        return industry;
    }

    public ZyCustomerBusiness setIndustry(Integer industry) {
        this.industry = industry;
        return this;
    }

    public CustomerEnums.Industry[] getIndustryEnums() {
        return industryEnums;
    }


    public String getBusinessScope() {
        return this.businessScope;
    }

    public ZyCustomerBusiness setBusinessScope(String businessScope) {
        this.businessScope = businessScope;
        return this;
    }

    public String getBusinessAddress() {
        return this.businessAddress;
    }

    public ZyCustomerBusiness setBusinessAddress(String businessAddress) {
        this.businessAddress = businessAddress;
        return this;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public ZyCustomerBusiness setStartTime(Date startTime) {
        this.startTime = startTime;
        return this;
    }

    public String getStatusQuo() {
        return this.statusQuo;
    }

    public ZyCustomerBusiness setStatusQuo(String statusQuo) {
        this.statusQuo = statusQuo;
        return this;
    }

    public String getOrganizationalForm() {
        return this.organizationalForm;
    }

    public ZyCustomerBusiness setOrganizationalForm(String organizationalForm) {
        this.organizationalForm = organizationalForm;
        return this;
    }

    public Integer getEmployeeNum() {
        return this.employeeNum;
    }

    public ZyCustomerBusiness setEmployeeNum(Integer employeeNum) {
        this.employeeNum = employeeNum;
        return this;
    }

    public String getBussnessPhone() {
        return bussnessPhone;
    }

    public ZyCustomerBusiness setBussnessPhone(String bussnessPhone) {
        this.bussnessPhone = bussnessPhone;
        return this;
    }

    public BigDecimal getYearSale() {
        return this.yearSale;
    }

    public ZyCustomerBusiness setYearSale(BigDecimal yearSale) {
        this.yearSale = yearSale;
        return this;
    }

    public BigDecimal getGrossProfit() {
        return this.grossProfit;
    }

    public ZyCustomerBusiness setGrossProfit(BigDecimal grossProfit) {
        this.grossProfit = grossProfit;
        return this;
    }

    public BigDecimal getNetProfit() {
        return this.netProfit;
    }

    public ZyCustomerBusiness setNetProfit(BigDecimal netProfit) {
        this.netProfit = netProfit;
        return this;
    }

    public BigDecimal getTotalAssets() {
        return this.totalAssets;
    }

    public ZyCustomerBusiness setTotalAssets(BigDecimal totalAssets) {
        this.totalAssets = totalAssets;
        return this;
    }

    public BigDecimal getStock() {
        return this.stock;
    }

    public ZyCustomerBusiness setStock(BigDecimal stock) {
        this.stock = stock;
        return this;
    }

    public BigDecimal getAccountReceivable() {
        return this.accountReceivable;
    }

    public ZyCustomerBusiness setAccountReceivable(BigDecimal accountReceivable) {
        this.accountReceivable = accountReceivable;
        return this;
    }

    public BigDecimal getLiabilities() {
        return this.liabilities;
    }

    public ZyCustomerBusiness setLiabilities(BigDecimal liabilities) {
        this.liabilities = liabilities;
        return this;
    }

    public String getOther() {
        return this.other;
    }

    public ZyCustomerBusiness setOther(String other) {
        this.other = other;
        return this;
    }

    public String getCustomerId() {
        return customerId;
    }

    public ZyCustomerBusiness setCustomerId(String customerId) {
        this.customerId = customerId;
        return this;
    }
}
